<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>二次元风格用户选择页面</title>
<style type="text/css">
	@keyframes sakura-fall {
    	0% { transform: translateY(-100vh) rotate(0deg); }
    	100% { transform: translateY(100vh) rotate(360deg); }
	}
	
	.text{
		text-align: right;
        margin-bottom: 10px;
        color: blue;
	}
	.exit-btn:hover::after {
    	content: "❀";
    	position: absolute;
    	animation: sakura-fall 2s linear infinite;
    	color: #ff69b4;
    	font-size: 24px;
	}
    body {
        margin: 0;
        padding: 0;
        background: #f0f8ff; /* 浅天蓝色背景，营造清新氛围 */
        font-family: 'Arial', sans-serif;
    }
    .container {
        max-width: 800px;
        margin: 50px auto;
        padding: 20px;
        background: #ffffff; /* 白色背景，突出内容 */
        border-radius: 15px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
    h1 {
        text-align: center;
        margin-bottom: 30px;
        font-size: 2.5em;
        color: #4b0082; /* 靛蓝色标题，吸引眼球 */
    }
    .index-img1, .index-img2 {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    .index-img1 a, .index-img2 a {
        text-decoration: none;
    }
    .index-img1 img, .index-img2 img {
        width: 200px;
        height: 200px;
        border-radius: 15px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }
    .index-img1 img:hover, .index-img2 img:hover {
        transform: scale(1.05);
    }
    /* 渐变文字效果，用于链接标题 */
    .link-title {
        display: block;
        margin-top: 10px;
        font-size: 1.2em;
        color: #87ceeb; /* 天蓝色文字 */
        background: linear-gradient(90deg, #87ceeb, #4b0082);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
</style>
</head>
<body>

<div class="container">
    <h1>用户请选择</h1>
    <a href="${pageContext.request.contextPath}/admin/role"><div class="text">用户管理页面</div></a>${msg }
    <div class="index-img1">
        <a href="${pageContext.request.contextPath}/user/login">
            <img alt="前往用户登录" src="${pageContext.request.contextPath}/static/image/index1.png" title="用户登录">
            <div class="link-title">用户登录</div>
        </a>
        <a href="${pageContext.request.contextPath}/user/userRegister">
            <img alt="前往用户注册" src="${pageContext.request.contextPath}/static/image/index2.png" title="用户注册">
            <div class="link-title">用户注册</div>
        </a>
        <a href="${pageContext.request.contextPath}/hayidong">
            <img alt="前往使用哈移动" src="${pageContext.request.contextPath}/static/image/index3.png" title="使用哈移动">
            <div class="link-title">使用哈移动</div>
        </a>
    </div>
    <div class="index-img2">
        <a href="${pageContext.request.contextPath}/huafeicz">
            <img alt="前往话费充值" src="${pageContext.request.contextPath}/static/image/index4.png" title="话费充值">
            <div class="link-title">话费充值</div>
        </a>
        <a href="${pageContext.request.contextPath}/zifeisuoming">
            <img alt="前往资费说明" src="${pageContext.request.contextPath}/static/image/index5.png" title="资费说明">
            <div class="link-title">资费说明</div>
        </a>
        <!-- 注意：exit()不是一个有效的HTML链接，应替换为实际的退出页面链接 -->
        <a href="${pageContext.request.contextPath}/logout" class="anime-button exit-btn" onclick="return confirm('确定退出当前账号吗?(＞﹏＜)')" style="display: flex; flex-direction: column; align-items: center;">
            <img alt="退出系统" src="${pageContext.request.contextPath}/static/image/index6.png" title="退出系统" style="filter: drop-shadow(0 0 8px rgba(255,75,75,0.5))">
            <span class="btn-text">安全退出</span>
        </a>
    </div>
</div>

</body>
</html>
